package test;

import java.net.MalformedURLException;

import test.Basic;

import cn.edu.zjut.chopper.client.ChopperClient;
import cn.edu.zjut.chopper.exception.ChopperException;


public class BasicClient {

	public static void main(String[] args) throws MalformedURLException {
		

		
		
		ChopperClient chopperClient = new ChopperClient();
		try {
			Basic basic = (Basic) chopperClient.findAndCreate(Basic.class, "hw");
			System.out.println(basic.hello("world"));
		} catch (ChopperException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
	}
}